<template>
  <div id="app">
    <router-view v-if="isRouterAlive" />
  </div>
</template>

<script>
export default {
  name: 'App',
  provide: function() {
    return {
      reload: this.reload
    }
  },
  // isRouterAlive控制显示
  data: function() {
    return {
      isRouterAlive: true
    }
  },
  methods: {
    // 刷新方法
    reload: function() {
      this.isRouterAlive = false
      // 该方法会在dom更新后执行
      this.$nextTick(function() { this.isRouterAlive = true })
    }
  }
}
</script>

<style lang="scss">
body .el-table th.gutter{
    display: table-cell!important;
}

body .el-table colgroup.gutter{
    display: table-cell!important;
}

.el-checkbox__inner {
  width: 24px;
  height: 24px;
}
.el-checkbox__inner::after {
  width: 6px;
  height: 14px;
  left: 7px;
  border-width: 2px;
}
.el-checkbox__input.is-indeterminate .el-checkbox__inner::before {
  height: 4px;
  top: 10px;
}
</style>
